Class Example

java.lang.Object
edu.uky.ai.ml.nn.Example

public class Example
extends java.lang.Object
An example is an individual data point that is part of a larger database.
Author:
Stephen G. Ware
  • Field Summary

    Fields 
    Modifier and Type Field Description
    double[] input
    The input given to the neural network
    java.lang.String label
    A class label associated with this output
    double[] output
    The output that neural network should give
  • Constructor Summary

    Constructors 
    Constructor Description
    Example​(double[] input, double[] output, java.lang.String label)
    Constructs a new training example.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • input

      public final double[] input
      The input given to the neural network
    • output

      public final double[] output
      The output that neural network should give
    • label

      public final java.lang.String label
      A class label associated with this output
  • Constructor Details

    • Example

      public Example​(double[] input, double[] output, java.lang.String label)
      Constructs a new training example.
      Parameters:
      input - the input given to the neural network
      output - the output the network should give
      label - a class label associated with the output